package legoproject.Tests;


import lejos.nxt.*;

public class GrabDegreeTest{

	public static void main(String[] args){
		int degree = 1000;
		while(true){
			if(Button.ENTER.isPressed()){
				degree = degree + 150;
				LCD.clear();
                LCD.drawInt(degree, 0, 0);
                LCD.refresh();
                while(Button.ENTER.isPressed()){

                }
			}
			if(Button.ESCAPE.isPressed()){
				Sound.buzz();
				break;
			}
            if(Button.RIGHT.isPressed()){
				Sound.buzz();
                degree = -degree;
				break;
			}
		}
		Motor.B.rotate(degree);

		main(args);
	}
}
